#include <stdio.h>
int main()
{
    double height, sum = 0, t;
    int n;
    scanf("%lf %d", &height, &n);
    t = height;
    if(n == 0)
    {
        printf("0.0 0.0");
        return 0;
    }
    for(int i = 1; i <= n; i++)
    {
        sum += height * 2;
        height /= 2;
        // printf("%f\n", sum);
    }
    printf("%.1f %.1f", sum - t, height);
    return 0;
}